<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<!--顶端栏-->
<nav class="navbar navbar-default" role="navigation" style="background-color:#fff" th:fragment="topbar">
    <div class="container-fluid">
        <div class="navbar-header" style="margin-left: 8%;margin-right: 1%">
            <a class="navbar-brand " href=""><p class="text-primary">我的图书馆</p></a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav navbar-left">
                <li>
                    <a th:href="@{/reader/queryBook}" >
                        图书查询
                    </a>
                </li>
                <li>
                    <a th:href="@{/readerInfo}" >
                        个人信息
                    </a>
                </li>
                <li >
                    <a th:href="@{/mylend(readerId=${session.user.getReaderId()})}" >
                        我的借还
                    </a>
                </li>
                <li >
                    <a th:href="@{/reader_repasswd(readerId=${session.user.getReaderId()})}" >
                        密码修改
                    </a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href=""><span class="glyphicon glyphicon-user" th:text="${session.user.getName() + '，已登录'}"></span>&nbsp;</a></li>
                <li><a th:href="@{/logout.html}"><span class="glyphicon glyphicon-log-in"></span>&nbsp;退出</a></li>
            </ul>
        </div>
    </div>
</nav>
</html>